package com.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName CheckController
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/5 17:01
 * @Version 1.0
 **/
@Controller
@RequestMapping("check")
public class CheckController {
    @ResponseBody
    @PostMapping("checkUser")
    public String checkUser(String name){
        System.out.println(name);

        if ("qianfeng".equals(name)){
            return "true";
        }
        return "false";

    }
}
